﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.DTO;

namespace ZSZ.Iservice
{
   public interface IHouseAppointmentService:IServiceSupport
    {
        long AddNew(long? userId,string name,string phoneNum,long houseId,DateTime visitDate);
        /// <summary>
        /// 跟踪预约
        /// </summary>
        /// <param name="adminUserId"></param>
        /// <param name="houseAppointmentId"></param>
        /// <returns></returns>
        bool Follow(long adminUserId,long houseAppointmentId);
        HouseAppointmentDTO GetById(long id);
        /// <summary>
        /// //得到 cityId 这个城市中状态为 status 的预约订单数
        /// </summary>
        /// <param name="cityId">城市Id</param>
        /// <param name="status">状态</param>
        /// <returns></returns>
        long GetToTalCount(long cityId,string status);
        //limit 后面两个数不能用计算表达式，只能用固定的值，因此只能通过参数传递，计算在 .net 中完成。
        HouseAppointmentDTO[] GetPagedData(long cityId,string status,int pageSize,int currentIndex);
    }
}
